import http from '../../api/http'
import axios from 'axios'
export function getEmail(email){
    return http.get('/getEmailCode', {email})
    // debugger
    // var a= axios({
    //     url:'http://127.0.0.1:9999/getEmailCode',
    //     method:'get',
    //     params: email
    // })
    //
    // console.log(a)
}
export function getCheck(id){
    return http.get('/check', {id})
}
export function selectEmail(email){
    return http.get('/user/selectemail', {email})
}
/*export function savee(userDTO){
    return http.post('/user/register', userDTO)
}*/
export function save(userDTO){
    return http.postformdata('/user/register', userDTO)
}
export function getCaptcha(){
    return http.get('/captcha')
}
export function postUpdate(user){
    return http.put('/user/update',user)
}
